﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true"
    CodeFile="AccountManagerment.aspx.cs" Inherits="Modeling_Sub_Pages_NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #main
        {
            min-width: 1100px;
        }
        #center
        {
            margin-top: 15px;
        }
        #left2
        {
            margin-top: 15px;
        }
        .toCenter
        {
            margin-left: auto;
            margin-right: auto;
        }
        .linkNotchange:visited
        {
            color: #0000CC;
        }
        #left2
        {
            float: left;
            width: 275px;
            min-height: 500px;
        }
        #left2 table
        {
            width: 80%;
            margin-left: auto;
            margin-right: auto;
            border-top-width: thick;
            border-top-color: #FF9900;
            border-top-style: solid;
            border-bottom-width: thin;
            border-bottom-color: #FF9900;
            border-bottom-style: solid;
            border-left-width: thin;
            border-left-color: #FF9900;
            border-left-style: solid;
            border-right-width: thin;
            border-right-color: #FF9900;
            border-right-style: solid;
            border-top-right-radius: 7px;
            border-top-left-radius: 7px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="left2">
        <table>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Administrator/FacilitiesManagerment.aspx"
                        CssClass="LinkStyle1">Facilities Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Administrator/DepartmentManagerment.aspx"
                        CssClass="LinkStyle1">Department Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/Administrator/AchievementManagerment.aspx"
                        CssClass="LinkStyle1">Achievement Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Administrator/SubjectManagerment.aspx"
                        CssClass="LinkStyle1">Subject Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/Administrator/EmployeeManagerment.aspx"
                        CssClass="LinkStyle1">Employee Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td id="activeTD">
                    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/Administrator/AccountManagerment.aspx"
                        CssClass="activeLink">Account Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/Administrator/ChangePassword.aspx"
                        CssClass="LinkStyle1">Change Password</asp:HyperLink>
                </td>
            </tr>
        </table>
    </div>
    <div id="center">
        <table width="100%">
            <tr>
                <td align="center">
                    <asp:Label ID="Label1" runat="server" Text="Account Managerment" Font-Size="20pt"
                        ForeColor="#990033"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table>
                        <tr>
                            <td align="center">
                                <asp:DropDownList ID="ddlAccountType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlAccountType_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Label ID="Label5" runat="server" Text="ID: "></asp:Label>
                                <asp:TextBox ID="txtID" runat="server" Width="50px"></asp:TextBox>
                                <asp:Button ID="Button2" runat="server" Text="Search" 
                                    onclick="btnSearch_Click"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Label ID="Label4" runat="server" Text="Username: "></asp:Label>
                                <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
                                <asp:Button ID="Button1" runat="server" Text="Search" 
                                    onclick="btnSearch_Click"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="First Name: "></asp:Label>
                                <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                                <asp:Label ID="Label3" runat="server" Text="Last Name: "></asp:Label>
                                <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                                <asp:Button ID="btnSearch" runat="server" Text="Search" 
                                    onclick="btnSearch_Click"/>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" CssClass="toCenter"
                        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2"
                        ForeColor="Black" GridLines="Both" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
                        PageSize="20" OnRowCommand="GridView1_RowCommand">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton runat="server" ID="btnReset" Text="Reset Password" CommandName="reset"
                                        CommandArgument='<%# DataBinder.Eval(Container.DataItem, "[ID]")%>' OnClientClick="return confirm('Are you certain you want to reset this account password?')" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NextPrevious" NextPageText="Next►" PreviousPageText="◄Previous" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
